package com.rainflowerstone;

import android.os.Bundle;
import com.qmuiteam.qmuidemo.base.BaseFragment;
import com.qmuiteam.qmuidemo.base.BaseFragmentActivity;
import com.rainflowerstone.home.RainFlowerStoneHomeFragment;

/**
 * @ Author     ：lwc
 * @ Date       ：Created in 12:47 2018/12/26
 * @ Description：入口类
 * @ Modified By：
 * @Version: $version$
 */
public class RainFlowerStroneMainActivity extends BaseFragmentActivity {

    @Override
    protected int getContextViewId() {
        return R.id.qmuidemo;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (savedInstanceState == null) {
            BaseFragment fragment = new RainFlowerStoneHomeFragment();
            getSupportFragmentManager()
                    .beginTransaction()
                    .add(getContextViewId(), fragment, fragment.getClass().getSimpleName())
                    .addToBackStack(fragment.getClass().getSimpleName())
                    .commit();
        }
    }
}
